package com.mysoap.medicine.client;

import java.rmi.RemoteException;

import org.apache.axis2.AxisFault;

import com.mysoap.medicine.service.TUserQuerySoapStub;
import com.mysoap.medicine.service.TUserQuerySoapStub.UserQueryRequest;
import com.mysoap.medicine.service.TUserQuerySoapStub.UserQueryRequestResponse;

public class TUserQueryClient {
	public static void main(String[] args) throws RemoteException {
		String address = "http://localhost:8080/MySoap/services/TUserQuerySoap";
		TUserQuerySoapStub stub = new TUserQuerySoapStub(address);
		TUserQuerySoapStub.UserQueryRequestE userQueryRequestE = 
			new TUserQuerySoapStub.UserQueryRequestE();
		UserQueryRequest userQueryRequest = new UserQueryRequest();
	//	userQueryRequest.setUserName("zhangsan");
		userQueryRequest.setLoginName("zs");
		userQueryRequest.setUserPassword("123");
		userQueryRequestE.setUserQueryRequest(userQueryRequest);
		UserQueryRequestResponse response  =stub.userQueryRequest(userQueryRequestE);
		System.out.println(response.get_return().getDescription());
	}
}
